//
//  CinemaTableViewCell.m
//  UIhomework豆瓣
//
//  Created by dllo on 15/12/26.
//  Copyright © 2015年 lanou3g. All rights reserved.
//

#import "CinemaTableViewCell.h"

@implementation CinemaTableViewCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self creatCell];
    }
    return self;
}
-(void)dealloc{
    [_imgView release];
    [_label1 release];
    [_label2 release];
    [_label3 release];
    [super dealloc];
}
- (void)creatCell{
    self.imgView = [[UIImageView alloc] init];
    [self.contentView addSubview:_imgView];
    [_imgView release];
    
    self.label1 = [[UILabel alloc] init];
    [_imgView addSubview:_label1];
    [_label1 release];
    
    self.label2 = [[UILabel alloc] init];
    [_imgView addSubview:_label2];
    [_label2 release];
    
    self.label3 = [[UILabel alloc] init];
    [_imgView addSubview:_label3];
    [_label3 release];
}
- (void)layoutSubviews{
    [super layoutSubviews];
    self.imgView.frame = CGRectMake(22, 22, 370, 220);
    self.label1.frame = CGRectMake(10, 5, 350, 30);
    self.label1.font = [UIFont systemFontOfSize:25];
    self.label2.frame = CGRectMake(10, 55, 350, 50);
    self.label2.numberOfLines = 2;
    self.label3.frame = CGRectMake(10, 155, 350, 25);
}
@end
